#ifndef GROUPSESSIONDETAILWIDGET_H
#define GROUPSESSIONDETAILWIDGET_H

#include <QDialog>
#include <QWidget>
#include "sessiondetailwidget.h"
#include <QGridLayout>
#include <QLabel>

/**********************************************************************************************
 * 群聊中点击...按钮弹出的窗口
 **********************************************************************************************/
class GroupSessionDetailWidget : public QDialog
{
    Q_OBJECT
public:
    GroupSessionDetailWidget(QWidget* parent);
    void initData();
    void initMember(const QString& chatSessionId);
    void addMember(AvatarItem* avatarItme);

private:
    QWidget* container;
    QGridLayout* glayout;
    QLabel* groupNameLabel;

    // 记录当前成员放到了第⼏⾏, 第⼏列
    int currentRow = 0;
    int currentCol = 0;
    const int MAX_COL = 4;
};

#endif // GROUPSESSIONDETAILWIDGET_H
